/*
* <p>Copyright： 东软烟草产品研发团队</p>
*/
package com.jkl.dao.dept;

import java.util.List;

import com.jkl.entity.dept.Dept;
import org.apache.ibatis.annotations.Param;

import com.jkl.entity.dept.BSDept;

import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;

/**
 * <p>Dao<p>
 * <p> 变更说明：@author lin.pf 2018-10-07Dao<p>
 * Date:2018-10-07
 * @author lin.pf
 * @version 1.0
 */
public interface BSDeptMapper extends Mapper<BSDept>, InsertListMapper<BSDept> {

	List<BSDept> queryByParentId(String parentId);// 地址查询
	BSDept getAreaByDeptCode(String deptCode);// 地址查询

	List<BSDept> getDeptBylevel(@Param("level")int level);
	
	List<BSDept> getDeptList();
	
	List<BSDept> getDeptObject(String rowId);//获取单个
	
	BSDept getDeptObjectlevel(@Param("cityName")String cityName);

	List<BSDept> queryAddress(Integer parentId);//地址查询
	List<BSDept> getBSDeptStreet(String deptId);
	List<BSDept> getBSDeptCommunity(String deptId);
	List<BSDept> getTree(@Param("level") int level);

    List<BSDept> getDeptObjectLevel4(String rowId);

	Integer getBsDeptLevelByRowId(Integer rowId);

	Dept getDeptByRowId(int param);

    List<BSDept> getChildrenListByParentId(Integer parentId);
}
